import csv
headers = ['name','price','author']
values = [
	('流浪地球',18,'刘慈欣'),
	('梦的解析',30,'弗洛伊德'),
	('时间简史',35,'斯蒂芬·威廉·')
]
with open('book.csv','w',newline='') as fp:
	writer=csv.writer(fp)
	writer.writerow(headers)
	writer.writerows(values)
